<div ng-if="pagedata.op=='get'" class="fui-page" style="height:auto;background:url('../core/resource/images/login-bg-sm.jpg') no-repeat 100%;background-size: 100%;">
	<div class="fui-content" style="background:none;padding:0.5rem">
		<div class="weui_cells_title" style="font-size:0.9rem;margin-top:2rem;color:#333"><img style="width:1.2rem;height:1.2rem;border-radius:50%" ng-src="{{tomedia(main.logo) || '../core/resource/images/nopic.jpg'}}"> {{pagedata.account.title}} 申请访问</div>
		<div class="weui_cells_title bold" style="font-size:1rem;margin-top:0.2rem;color:#000">以下小程序</div>
		<div class="weui_cells" style="padding-left:10px">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary" style="padding-left:0.2rem">
                    <span>点击一键跳转到下面的小程序</span>
                </div>
            </div>
        </div>
		<div class="weui_cells weui_cells_checkbox" style="padding-left:10px;margin-top:0">
            <label class="weui_cell weui_check_label" for="s11">
                <div class="weui_cell_hd" style="padding-right:0;padding-left:0.2rem;">
                    <img ng-src="{{tomedia(pagedata.app.logo) || '../core/resource/images/no-wxapp.png'}}" style="width:3rem;height:3rem;border-radius:0.3rem;margin-right:5px;display:block">
                </div>
                <div class="weui_cell_bd weui_cell_primary" style="padding-left:0.2rem">
                    <div style="color:#333;font-size:1rem;padding-bottom:0.3rem">{{pagedata.app.title}}</div>
					<div class="subtitle">微信小程序</div>
                </div>
				<div class="weui_cell_ft">
                    <input type="radio" class="weui_check" name="checkbox1" id="s11" checked="checked">
                    <span class="weui_icon_checked"></span>
                </div>
            </label>
        </div>
		<button ng-if="pagedata.iswechat!=1" class="weui_btn weui_btn_primary" style="margin: auto;margin-top:8rem;width:60%;" ng-click="pagedata.gourl_scheme()">跳转小程序</button>
		<div ng-if="pagedata.iswechat==1">
		<wx-open-launch-weapp
		  id="launch-btn"
		  username="{{pagedata.app.oldid}}"
		  path="{{pagedata.jump_wxa.path}}"
		  style="display: block;"
		>
		  <template>
		    <style>
			button.weui_btn,
			input.weui_btn {
			  width: 100%;
			  border-width: 0;
			  outline: 0;
			  -webkit-appearance: none;
			}
			button.weui_btn:focus,
			input.weui_btn:focus {
			  outline: 0;
			}
			.weui_btn {
				position: relative;
				display: block;
				margin-left: auto;
				margin-right: auto;
				padding-left: 0.65rem;
				padding-right: 0.65rem;
				box-sizing: border-box;
				font-size: 0.65rem;
				text-align: center;
				text-decoration: none;
				color: #FFFFFF;
				line-height: 3;
				border-radius: 5px;
				overflow: hidden;
			}
			.weui_btn:after {
			  content: " ";
			  width: 200%;
			  height: 200%;
			  position: absolute;
			  top: 0;
			  left: 0;
			  border: 1px solid rgba(0, 0, 0, 0.2);
			  -webkit-transform: scale(0.5);
					  transform: scale(0.5);
			  -webkit-transform-origin: 0 0;
					  transform-origin: 0 0;
			  box-sizing: border-box;
			  border-radius: 10px;
			}
			.weui_btn_primary {
			  background-color: #04be02;
			}
			.weui_btn_primary:not(.weui_btn_disabled):visited {
			  color: #FFFFFF;
			}
			.weui_btn_primary:not(.weui_btn_disabled):active {
			  color: rgba(255, 255, 255, 0.4);
			  background-color: #039702;
			}
			</style>
			<button class="weui_btn weui_btn_primary" style="margin: auto;margin-top:8rem;width:60%;">跳转小程序</button>
		  </template>
		</wx-open-launch-weapp>
		</div>
		<div class="footer-support">
			<div ng-if="main.js_supportimg" class="supportimg"><img ng-src="{{tomedia(main.js_supportimg) || '../core/resource/images/js_supportimg.png'}}"/></div>
			<div class="supporttitle">{{main.js_support}}提供技术支持</div>
		</div>
	</div>
</div>
<script>
scope.pagedata.gourl_scheme=function(){
	if(scope.pagedata.iswechat!=1){
		if(scope.pagedata.getscheme.error!=1){
			location.href = scope.pagedata.getscheme.msg
		}else{
			scope.message(scope.pagedata.getscheme.msg);
		}
	}else{
		if(!scope.pagedata.app.oldid){
			scope.message('该小程序没有设置原始ID，无法访问');
		}
	}
}
scope.pagedata.gourl_scheme();
</script>